<table #table data-toolbar="#toolbar">
</table>

<div id="toolbar">
<span class="btn btn-default" (click)="showAddRoleModal()"><span class="fa fa-plus"
                                                                 style="margin-right: 5px"></span>增加</span>
</div>

<div #editModal class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                        aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">新增数据</h4>
            </div>
            <div class="modal-body">

                <div class="form-group">
                    <label>角色名称</label>
                    <input type="text" class="form-control" [(ngModel)]="roleEditForm.name" maxlength="50">
                </div>


                <table #permissionListTable>
                </table>


            </div>
            <div class="modal-footer">
                <div class="row">
                    <div class="col-xs-6">
                        <button type="button" class="btn btn-default" style="width: 100%" data-dismiss="modal">关闭
                        </button>
                    </div>
                    <div class="col-xs-6">
                        <button type="button" class="btn btn-primary" style="width: 100%" (click)="editRole()">保存
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>




